package com.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.entity.UserEntity;
import com.service.UserService;

/****
 * 提供一个方法 让order来调用
 * @author Administrator
 *
 */
@RestController
public class UserApiController {
	@Autowired
	private UserService userService;

	@RequestMapping("/getUser")
	public UserEntity getUser(Integer userId) {
		return userService.getUser(userId);
	}

}